
let obj = {
    filterPrice: p => p.toFixed(2)
}

export let filter = {
    install(Vue) {
        Object.keys(obj).forEach(k => {
            Vue.filter(k, obj[k])
        })
    }
}